package com.zsjt.yysapi.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "yysapi")
public class YysApiConfig {
    /**
     * 项目名称
     */
    private String name;

    /**
     * 版本
     */
    private String version;

    /**
     * 版权年份
     */
    private String copyrightYear;

    /**
     * 获取ip地址开关
     */
    private static boolean addressEnabled;

    public static boolean isAddressEnabled() {
        return addressEnabled;
    }
}
